﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using com.ytocargo.Core.AcarsInfos;
using Yto.Common.Dependency;

namespace com.ytocargo.Application.AcarsInfos
{
    public class AcarsInfoServices : IAcarsInfoServices, ITransient
    {
        private readonly IAcarsInfoStore _acarsInfoStore;
        public AcarsInfoServices(IAcarsInfoStore acarsInfoStore)
        {
            _acarsInfoStore = acarsInfoStore;
        }

        public Task<List<AcarsInfo>> GetUnSengdListAsync(int maxCount)
        {
            return _acarsInfoStore.GetUnSengdListAsync(maxCount);
        }

        public Task<AcarsInfo> UpdateAcarsInfoAsync(AcarsInfo acarsInfo)
        {
            return _acarsInfoStore.UpdateAcarsInfoAsync(acarsInfo);
        }
    }
}
